package com.itheima.demo;

import java.util.Arrays;

public class Demo_Math {
    public static void main(String[] args) {
        //long start = System.currentTimeMillis();
        //for (int i = 0; i < 10000; i++) {
        //    System.out.println(i);
        //}
        //long end = System.currentTimeMillis();
        //System.out.println(end - start);


        int[] arr = {1, 2, 3, 4, 5, 6, 7};
        int[] arr1 = new int[10];
        //System.arraycopy(arr, 0, arr1, 0, arr.length);
        //System.out.println(Arrays.toString(arr1));
        System.arraycopy(arr, 3, arr1, 3, 3);
        System.out.println(Arrays.toString(arr1));

    }
}
